package com.example.qxfw.cshx.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.zy.CshxYz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@DS("cshx")
public interface CshxYzMapper extends BaseMapper<CshxYz> {
    @Select("select weatherfactor, month, minvalue, maxvalue, exponentialcomponent " +
            "from cshx_yz " +
            "where month='${month}' or month is null")
    List<CshxYz> selectList(String month);

}
